package cn.com.zero.manager.auth.mapper;

import cn.com.zero.manager.auth.po.MenuPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author Yang Yao
 * @version 1.0.0
 * @Description
 * @createTime 2023/3/8 13:47
 */
@Mapper
@Repository
public interface ITestMapper {


    MenuPO getMenuByMenuId(@Param("menuId") Long menuId);


    MenuPO getMenuBySort(@Param("sort") Long sort);

    Long getMaxSort();

    void addMenu(@Param("menuId") Long menuId, @Param("name") String name, @Param("parentId") Long parentId, @Param("url") String url,
                 @Param("type") Integer type, @Param("sort") Long sort);

    void addMenuAndRole(@Param("menuId") Long menuId, @Param("roleCode") String role);
}
